
package shopping

import (
    "dhfshop/models"
	"github.com/astaxie/beego/orm"
)

type OrderLog struct {
	OrderId     int64   `orm:"column(order_id);pk" json:"order_id" form:"order_id"`  // 
	Types        int     `orm:"column(types)" json:"types" form:"types"`     // 
	IsSystem    int     `orm:"column(is_system)" json:"is_system" form:"is_system"`     //
	Message     string  `orm:"column(message)" json:"message" form:"message"`     //
	RecordTime  int64   `orm:"column(record_time)" json:"record_time" form:"record_time"`     //
}

func init() {
    orm.RegisterModel(new(OrderLog))   
}

// 保存订单日志
func AddOrderLog(m *OrderLog) (err error) {
	o := models.GetDefaultDB()
	_, err = o.Insert(m)
	return
}


